package login

import (
	"encoding/json"
	"gitee.com/ifinder/wechat-ipad-sdk-golang/base"
)

type LogoutReq struct {
	Wxid string `json:"wxid"`

}
type LogoutResp struct {
	base.WechatResponseCommon
}

func (this *LogoutResp) IsLogout() bool {
	if this.Code==base.Code_0 && this.Success(){
		return true
	}else{
		return false
	}
}

func (this *LogoutResp) FromJson(data []byte) error{
	return json.Unmarshal(data,this)
}
